//箭头函数

main(){
List list = new List();
list.add("香蕉");
list.addAll(["橘子","苹果"]);
print(list);
 list.forEach((value)=>print(value));
 
 list.forEach((value)=>{
	//该种写法不得存在分号
	print(value)
 });
 
 var olist = list.map((v)=> v+'1');
 print(olist);
 
 List nlist = [1,2,3,4];
 
 //三木运算符
 var tlist = nlist.map((r)=>r>2?r*2:r);
 print(nlist);
 print(tlist);
 
 
 print("匿名函数-----------匿名函数-------------->");
 var num =(String username,bool age){
	print("username:$username age:$age");
	
 };
 
 num('小明',true);
 
 
 
 
}

digui(n){
	
}

